package com.itheima.d4.Instant;

import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;

public class Test {
    public static void main(String[] args) {
        // 得到一个Instant时间戳
        Instant now = Instant.now();
        System.out.println(now);
        //拿到国内的时间戳
        ZonedDateTime zonedDateTime = now.atZone(ZoneId.systemDefault());
        System.out.println(zonedDateTime);

        // 转换
    }
}
